package jym.tan.movielibrary.model;

import java.io.Serializable;

public class ThemeModel implements Serializable {

	private static final long serialVersionUID = 52L;

	private String themeName;
	private String themeClass;

	public ThemeModel(String themeName, String themeClass) {		
		this.themeName = themeName;
		this.themeClass = themeClass;
	}

	public String getThemeName() {
		return themeName;
	}

	public void setThemeName(String themeName) {
		this.themeName = themeName;
	}

	public String getThemeClass() {
		return themeClass;
	}

	public void setThemeClass(String themeClass) {
		this.themeClass = themeClass;
	}	

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((themeClass == null) ? 0 : themeClass.hashCode());
		result = prime * result + ((themeName == null) ? 0 : themeName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object object) {
		if (this == object) {
			return true;
		}			
		if (object == null) {
			return false;
		}			
		if (getClass() != object.getClass()) {
			return false;
		}
		
		ThemeModel that = (ThemeModel) object;		
		return that.themeClass.equals(this.themeClass) & that.themeName.equals(this.themeName);
	}	
	
	@Override
	public String toString() {
		return themeName;
	}
}
